﻿using Framework.Utility.ViewModels;
using Support.Models.Entities;

namespace MonitorCode.Hangfire
{
    public interface IHangfireService
    {
        Task<TData<List<Job_MonitorServer>>> GetJobFireListAsync(string keyword = "");

        TData AddJobFire(Job_MonitorServer model);

        Task<TData> StartJobFireAsync(string JobId);

        Task<TData> DeleteJobFireAsync(string JobId);

        /// <summary>
        /// 删除监控
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<TData> DeleteServerMonitor(string jobId);

        TData GetReceiveEmail(string jobId);

        TData SetReceiveEmail(ReceiveEmailConfig model);

        Task SendJobResultEmail(string jobId, string title, string massage);
    }
}